package com.cqcet.wenchuang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
<<<<<<< HEAD
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
=======
>>>>>>> ae245ae (数据表和实体类的修改)
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品
 */
@Data
@ApiModel(value = "商品实体类")
public class Goods implements Serializable {
    //序列化版本号
    private static final long serialVersionUID = 1L;

    //主键，自动生成
    @ApiModelProperty(value = "ID")
    private Long id;

    //商家id
    @ApiModelProperty(value = "商家id")
    private Long adminId;

    //商品名
    @ApiModelProperty(value = "商品名")
    private String name;

    //图片地址
    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    //描述
    @ApiModelProperty(value = "描述")
    private String description;
<<<<<<< HEAD

    //商品数量
    @ApiModelProperty(value = "数量")
    private Integer quantity;

=======
    //销量
    private Integer sales;
    //商品数量
    private Integer quantity;
>>>>>>> ae245ae (数据表和实体类的修改)
    //单价
    @ApiModelProperty(value = "价格")
    private Double price;

    //商品状态标识:,1待审核,2已审核,3审核未通过
    @ApiModelProperty(value = "商品状态标识:,1待审核,2已审核,3审核未通过")
    private Integer status;

    //商品类型，根据分类表查询对应分类
<<<<<<< HEAD
    @ApiModelProperty(value = "商品分类id")
    private Long categoryId;

=======
    private Integer categoryId;
>>>>>>> ae245ae (数据表和实体类的修改)
    //乐观锁
    @Version
    @ApiModelProperty(value = "乐观锁")
    private Integer version;

<<<<<<< HEAD
    //逻辑删除，0删除
    @ApiModelProperty(value = "逻辑删除标识:0删除,1未删除")
    private Integer isDelete;

=======
>>>>>>> ae245ae (数据表和实体类的修改)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
